package cn.doitedu.rtmk.utils;

import com.alibaba.fastjson.JSONObject;

public class RuleHitResultBuilder {

    JSONObject obj = new JSONObject();

    public RuleHitResultBuilder setUser(long userId){
        obj.put("user_id",userId);
        return this;
    }

    public RuleHitResultBuilder setHitTime(long hitTime){
        obj.put("hit_time",hitTime);
        return this;
    }

    public RuleHitResultBuilder setHitRule(long hitRuleId){
        obj.put("hit_rule",hitRuleId);
        return this;
    }


    public RuleHitResultBuilder setHitRuleModel(int modelId){
        obj.put("rule_model_id",modelId);
        return this;
    }


    public JSONObject build(){
        return this.obj;
    }


}
